package dongshi.daddy.prototype.shallow;

public class SimpleClone {
    public static void main(String[] args) {
        Thing2 thing = new Thing2();
        thing.setValue("张三");
        Thing2 cloneThing = thing.clone();
        cloneThing.setValue("李四");
        System.out.println("原始对象：" + thing.getValue());
        System.out.println("拷贝对象：" +cloneThing.getValue());
    }
}
